<script type="text/javascript" language="javascript">
	var numItems = 50;
	var maxValue = 100000;
	var array = new Array(numItems);
	var benchmarks = {};

	
	document.addEventListener('DOMContentLoaded', function(e){
		
		Timer.start();
		for ( var i = 0;  i < numItems;  i++ ){
			array[i] = Math.floor(Math.random() * maxValue );
		}
		Timer.bench();benchmarks.arrayCreate = Timer.result;

		// Bubblesort
		var new_array = array.slice(0);
		Sort.bubbleSort(new_array);
		Timer.stop();benchmarks.bubbleSort = Timer.result;	

		// Quicksort
		//Timer.start();
		//var new_array = Sort.quickSort(array);
		//Timer.stop();benchmarks.quickSort = Timer.result;
		//console.log(new_array);

		// Fibonacci
		/**
		for(var i = 0; i < 25 ; i++){
			console.log(i + ":  " + Fibonacci(i));
		}
		*/
	});
</script>
<div id="output">
	<h1>Algos</h1>
	<span id="spann">
		This is where content goes
	</span>
</div>
<script type='text/javascript' src='/js/timer.js'></script>
<script type='text/javascript' src='/js/counter.js'></script>
<script type='text/javascript' src='/js/heap.js'></script>
<script type='text/javascript' src='/js/sort.js'></script>
<script type='text/javascript' src='/js/tree.js'></script>
<script type='text/javascript' src='/js/fibonacci.js'></script>